package com.llh.bean;

import java.io.Serializable;
import java.util.Date;

public class Income implements Serializable {
    private String ts_code;

    private Date end_date;

    private String report_type;

    private Double revenue;

    private Double compr_inc_attr_p;

    private Date open_day;

    private static final long serialVersionUID = 1L;

    public String getTs_code() {
        return ts_code;
    }

    public void setTs_code(String ts_code) {
        this.ts_code = ts_code == null ? null : ts_code.trim();
    }

    public Date getEnd_date() {
        return end_date;
    }

    public void setEnd_date(Date end_date) {
        this.end_date = end_date;
    }

    public String getReport_type() {
        return report_type;
    }

    public void setReport_type(String report_type) {
        this.report_type = report_type == null ? null : report_type.trim();
    }

    public Double getRevenue() {
        return revenue;
    }

    public void setRevenue(Double revenue) {
        this.revenue = revenue;
    }

    public Double getCompr_inc_attr_p() {
        return compr_inc_attr_p;
    }

    public void setCompr_inc_attr_p(Double compr_inc_attr_p) {
        this.compr_inc_attr_p = compr_inc_attr_p;
    }

    public Date getOpen_day() {
        return open_day;
    }

    public void setOpen_day(Date open_day) {
        this.open_day = open_day;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Income other = (Income) that;
        return (this.getTs_code() == null ? other.getTs_code() == null : this.getTs_code().equals(other.getTs_code()))
            && (this.getEnd_date() == null ? other.getEnd_date() == null : this.getEnd_date().equals(other.getEnd_date()))
            && (this.getReport_type() == null ? other.getReport_type() == null : this.getReport_type().equals(other.getReport_type()))
            && (this.getRevenue() == null ? other.getRevenue() == null : this.getRevenue().equals(other.getRevenue()))
            && (this.getCompr_inc_attr_p() == null ? other.getCompr_inc_attr_p() == null : this.getCompr_inc_attr_p().equals(other.getCompr_inc_attr_p()))
            && (this.getOpen_day() == null ? other.getOpen_day() == null : this.getOpen_day().equals(other.getOpen_day()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getTs_code() == null) ? 0 : getTs_code().hashCode());
        result = prime * result + ((getEnd_date() == null) ? 0 : getEnd_date().hashCode());
        result = prime * result + ((getReport_type() == null) ? 0 : getReport_type().hashCode());
        result = prime * result + ((getRevenue() == null) ? 0 : getRevenue().hashCode());
        result = prime * result + ((getCompr_inc_attr_p() == null) ? 0 : getCompr_inc_attr_p().hashCode());
        result = prime * result + ((getOpen_day() == null) ? 0 : getOpen_day().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", ts_code=").append(ts_code);
        sb.append(", end_date=").append(end_date);
        sb.append(", report_type=").append(report_type);
        sb.append(", revenue=").append(revenue);
        sb.append(", compr_inc_attr_p=").append(compr_inc_attr_p);
        sb.append(", open_day=").append(open_day);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}